﻿using System;
using System.Windows.Data;

namespace EpiNEXT.WPF.Converters
{
    public class DoublePlusFourConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            double newValue = (double)value;
            return (newValue + 4);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            double newValue = (double)value;
            return (newValue - 4);
        }
    }
}
